<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript" src="<?php echo SITE_URL."/includes/libraries/javascript/" . 'datePicker/WdatePicker.js'; ?>" charset="utf-8"></script>
<div id="rightTop">
  <ul class="subnav">
      <li><a class="btn0" href="index.php?app=kd_wuliu&act=order&order_id=<?php echo $this->_var['order_info']['order_id']; ?>">物流列表</a></li>
      <li><a class="btn1" href="index.php?app=kd_wuliu&act=add&order_id=<?php echo $this->_var['order_info']['order_id']; ?>">添加物流</a></li>
  </ul>
</div>
<div class="tdare">
<table width="100%" cellspacing="0" class="dataTable" style="border-top: 1px solid #bbdbf1;">
    <tr class="tatr1">
      <td>编号</td>
        <td>运单号</td>
        <td>订单编号</td>
        <td>物流跟踪信息</td>
        <td>管理备注</td>
        <td>添加时间</td>
        <td>操作</td>
    </tr>
    <?php $_from = $this->_var['wuliu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
    foreach ($_from AS $this->_var['list']):
?>
    <tr class="tatr2">
      <td class="left_style"><?php echo htmlspecialchars($this->_var['list']['wuliu_id']); ?></td>
        <td><a href="index.php?app=kd_wuliu&act=edit&order_id=<?php echo $this->_var['list']['order_id']; ?>&wuliu_id=<?php echo $this->_var['list']['wuliu_id']; ?>"><?php echo htmlspecialchars($this->_var['list']['yundanhao']); ?></a></td>
        <td><?php echo htmlspecialchars($this->_var['order_info']['order_sn']); ?></td>
        <td><?php echo htmlspecialchars($this->_var['list']['yudan_text']); ?></td>
        <td><?php echo htmlspecialchars($this->_var['list']['notes']); ?></td>
        <td><?php echo local_date("Y-m-d H:i:s",$this->_var['list']['addtime']); ?></td>
        <td><a href="index.php?app=kd_wuliu&act=edit&order_id=<?php echo $this->_var['list']['order_id']; ?>&wuliu_id=<?php echo $this->_var['list']['wuliu_id']; ?>">修改</a>&nbsp;|&nbsp;<a href="javascript:drop_confirm('删除后不可恢复，您确定要删除吗','index.php?app=kd_wuliu&act=drop&order_id=<?php echo $this->_var['list']['order_id']; ?>&id=<?php echo $this->_var['list']['wuliu_id']; ?>');">删除</a></td>
  </tr>
  <?php endforeach; else: ?>
</table>
<table width="100%" cellspacing="0" class="dataTable">
  <tr bgcolor="#FFFFFF">
    <td style="padding:8px; color:#F00; text-align:center; font-size:14px;">没有符合条件的记录</td>
  </tr>
  <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<div>
<?php if ($this->_var['wuliu']): ?>
<div id="dataFuncs">
  <div id="batchAction" class="left paddingT15"></div>
  <div class="pageLinks"><?php echo $this->fetch('page.bottom.html'); ?></div>
<?php endif; ?>
 </div>
  <div class="clear"></div>
</div>
</div>